package com.dhsc.controller.khyjgl;

import com.dhsc.domain.khzl.common.DictVo;
import com.dhsc.domain.ywzx.khyjgl.YjshbsqVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.khyjgl.IYjsqbsqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description:客户佣金管理
 * @Author: CDW
 * @Date: 2023/11/15 15:19
 */
@RequestMapping("/khyjgl")
@Controller
public class YjspbsqController {

    @Autowired
    private IYjsqbsqService yjsqbsqService;

    /**
     * @Description:查询佣金审批表申请信息
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2023/11/15 15:26
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjsqbshxx")
    public LayuiTableVo queryYjsqbshxx(YjshbsqVo y){
        return yjsqbsqService.queryYjsqbshxx(y);
    }

    /**
     * @Description:查询处理状态
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/15 15:26
     * @param d:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjsqClzt")
    public ResponseObject queryYjsqClzt(DictVo d){
        return yjsqbsqService.queryYjsqClzt(d);
    }

    /**
     * @Description:查询类型字典
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/16 13:53
     * @param d:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjsqLx")
    public ResponseObject queryYjsqLx(DictVo d){
        return yjsqbsqService.queryYjsqLx(d);
    }

    /**
     * @Description:查询是否现场字典
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/16 13:53
     * @param d:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjsqSfxc")
    public ResponseObject queryYjsqSfxc(DictVo d){
        return yjsqbsqService.queryYjsqSfxc(d);
    }

    /**
     * @Description:保存上传客户佣金文件信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/20 13:37
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/uploadKhyjFile")
    public ResponseObject uploadKhyjFile(YjshbsqVo y){
        return yjsqbsqService.uploadKhyjFile(y);
    }

    /**
     * @Description:查询表cgzx.yjshsq下一个bh
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/20 17:45
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjspsqByid")
    public ResponseObject queryYjspsqByid(YjshbsqVo y){
        return yjsqbsqService.queryYjspsqByid(y);
    }

    /**
     * @Description:保存佣金审批申请信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2023/11/20 18:26
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/saveYjspsqxx")
    public ResponseObject saveYjspsqxx(YjshbsqVo y){
        return yjsqbsqService.saveYjspsqxx(y);
    }

    /**
     * @Description:查询佣金申请表审核页面
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2023/11/21 15:59
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/queryYjsqbsh")
    public LayuiTableVo queryYjsqbsh(YjshbsqVo y){
        return yjsqbsqService.queryYjsqbsh(y);
    }

    /**
     * @Description:删除佣金审批包申请信息
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2023/11/24 10:36
     * @param y:
     */
    @ResponseBody
    @RequestMapping(value="/deleteYjspsqxx")
    public ResponseObject deleteYjspsqxx(YjshbsqVo y){
        return yjsqbsqService.deleteYjspsqxx(y);
    }


}
